cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES C)

add_executable(test_package test_package.c)
if(PROJ_VERSION_GE_7)
  find_package(proj REQUIRED CONFIG)
  target_link_libraries(test_package PRIVATE PROJ::proj)
else()
  find_package(proj4 REQUIRED CONFIG)
  target_link_libraries(test_package PRIVATE PROJ4::proj)
endif()
